<template>
  <el-card class="box-card">
    <div slot="header" class="clearfix card-header">
      <span>{{ title }}</span> <span v-if="more">>>>> </span>
    </div>
    <div class="box-lists">
      <slot> 
      
        <div
          v-for="o in 8"
          :key="o"
          :class="['list-item', { 'list-down': type == 'download' }]"
        >
          <span>{{ "列表内容 " + o }}</span>
          <span v-if="type == 'list'">[07-25]</span>
          <span v-if="type == 'download'" class="el-icon-download"></span>
        </div>
      </slot>
    </div>
  </el-card>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
    more: {
      type: Boolean,
      default: true,
    },
    list: {
      type: Array,
      default: [],
    },
    type: {
      type: String,
      default: "list",
    },
  },
  methods: {
    toNewPage() {},
  },
};
</script>
<style scoped lang="scss">
::v-deep .el-card {
  box-sizing: border-box;
  width: 399px;
  height: 338px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 10px;
}
.card-header {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  text-indent: 5px;
  &::before {
    position: absolute;
    content: "";
    top: 10px;
    bottom: 10px;
    width: 2px;
    left: -3px;
    background: #fff;
  }
}
::v-deep .el-card__header {
  padding: 0 13px;
  height: 34px;
  background: #3582b7;
  color: #fff;
}
::v-deep .el-card__body {
  padding: 5px 13px !important;
}
.list-item {
  padding: 5px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-indent: 20px;
  position: relative;
  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    width: 6px;
    background: #444;
  }
}
.list-down {
  &::before {
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    width: 6px;
  }
}
</style>